package com.hsmw.api.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hsmw.api.mapper.HsmwDriverMapper;
import com.hsmw.api.mapper.HsmwOrderMapper;
import com.hsmw.common.base.BaseService;
import com.hsmw.domain.HsmwOrder;
import com.hsmw.domain.HsmwUserDriver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;


/**
 * @author WD
 */
@Service
@Transactional(isolation = Isolation.REPEATABLE_READ, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class HsmwDriverService extends BaseService<HsmwDriverMapper, HsmwUserDriver> {

	@Autowired
	private HsmwOrderMapper hsmwOrderMapper;


	public List<HsmwOrder>  selectOrderListByItemId(LambdaQueryWrapper<HsmwOrder> lambdaQueryWrapper ){
		return  hsmwOrderMapper.selectList(lambdaQueryWrapper);
	}


	public long  getPmAmount(HashMap param){
		return  hsmwOrderMapper.getPmAmount(param);
	}


}
